<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="./js/jquery-3.1.0.min.js"></script>
    <script src="./js/flexible.debug.js"></script>
    <script src="./js/flexible_css.debug.js"></script>
    <link rel="stylesheet" href="./css/paySuc.css">
    <title>支付成功</title>
</head>
<body>
    <div class="container">
        <img src="./image/avatar.png" class="icon" />
        <p class="label">支付成功</p>
        <input type="button" value="点击分享给好友" onclick="share()" />
    </div>

    <div id="mask">
        <img src="./image/share.png" alt="" srcset=""/>
    </div>
    <script>
    var share = function(){
        console.log($('#mask')[0]);
        $('#mask')[0].style.display = 'block';
    }
    $('#mask').click(function(){
        $('#mask')[0].style.display = 'none';
    });
    </script>
</body>
</html>